<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Richtext和HTML编辑器列类型</title>
  <script src="./js/jexcel.js"></script>
  <script src="./js/jsuites.js"></script>
  <link rel="stylesheet" href="./css/jsuites.css" type="text/css" />
  <link rel="stylesheet" href="./css/jexcel.css" type="text/css" />
</head>

<body>
  <h1>Richtext和HTML编辑器列类型</h1>

  <h3>1、在电子表格中添加HTML编辑器输入</h3>
  <div id="spreadsheet"></div>
</body>
<script>
  var options = {
    data: [
      ['the Sorcerer`s Stone', '<img align="left" src=""><span>On his 11th birthday, <b>Harry</b> receives a letter inviting him to study magic at the Hogwarts School of Witchcraft and Wizardry. <b>Harry</b> discovers that not only is he a wizard, but he is a famous one. He meets two best friends, Ron Weasley and Hermione Granger, and makes his first enemy, Draco Malfoy.</span>']
    ],
    columns: [
      { type: 'text', width: 200, title: 'Title' },
      { type: 'html', width: 400, title: 'HTML' },
    ],
    minDimensions: [2, 2],
  }

  jspreadsheet(document.getElementById('spreadsheet'), options);
</script>

</html>